<div class="main_body" id="main_body">
    <div class="breadcrub">
        当前位置：商品管理>添加分类
    </div>
    <div class="pannel">
        <table class="common_table">
            <tr>
                <th width="10%">id</th>

                <th width="50%">类别名称</th>
                <th width="20%">详情</th>
                <th width="20%">管理操作</th>
            </tr>
        {{range $index,$val :=.goodsSpus}}
            <tr>
                <td>{{$index}}</td>
                <td>{{$val.Name}}</td>
                <td><a href="显示详情">查看详情</a></td>
                <td><a href="/Article/deleteType?id={{$val.Id}}" class="edit">删除</a></td>
            </tr>
        {{end}}

        </table>
        <div class="pannel">
            <form method="post" action="/admin/AddGoodsSPU" enctype="multipart/form-data">
                <h3 class="review_title">添加商品SPU</h3>
                <div class="form_group">
                    <label>商品SPU名称：</label>
                    <input type="text" class="input_txt2" name="spuName" >
                </div>
                <div class="form_group">
                    <label>商品描述：</label>
                    <input type="text" class="input_txt2" name="spuDetail" >
                </div>
                <div class="form_group indent_group line_top">
                    <input type="submit" value="添 加" class="confirm">
                    <span>{{.errmsg}}</span>
                </div>
            </form>
        </div>
    </div>

</div>